home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Tool Chest / Interfaces & Libraries / Interfaces / CIncludes / stddef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-08-05  |  576 b   |  37 lines  |  [TEXT/MPS ]

  1. /*
  2.     StdDef.h -- Common definitions
  3.     
  4.     Copyright Apple Computer,Inc.    1987-1990, 1994, 1995
  5.     All rights reserved.
  6.  
  7.  
  8. */
  9.  
  10. #if ! defined (__STDDEF__)
  11. #define __STDDEF__
  12.  
  13. /*    
  14.     NULL - this macro is defined by several ANSI headers and Types.h
  15. */
  16.  
  17. #include <NullDef.h>
  18.  
  19. /*
  20.     size_t - this type is defined by several ANSI headers.
  21. */
  22.  
  23. #include <SizeTDef.h>
  24.  
  25. /*
  26.     wchar_t - this type is defined only by stddef and stdlib.
  27. */
  28.  
  29. #include <WCharTDef.h>
  30.  
  31. /* Definitions unique to stddef.h */
  32.  
  33. typedef int ptrdiff_t;
  34. #define offsetof(structure,field) ((size_t)&((structure *) 0)->field)
  35.  
  36. #endif
  37.